package io.gitee.luoyuan800.tool.llm.bean.request;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class KimiChatRequest extends ChatRequest {
    private List<Tool> tools;

    @Data
    public static class Tool {
        private String type;
        private Function function;
        public Tool(String type, String name){
            this.type = type;
            this.function = new Function(name);
        }
    }

    @Data
    @AllArgsConstructor
    public static class Function {
        private String name;
    }
}
